package cn.com.doone.common.uc.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import cn.com.doone.common.uc.web.service.SyncService;

public class QuartzJob {
	
	private static final Logger LOG = LoggerFactory.getLogger(RegisterController.class);
	
	@Autowired
	private SyncService syncService;
	
	public void work() {
        
		try {
			syncService.syncLdap();
			
			LOG.debug("同步ldap成功。");
		} catch (Exception e) {
			e.printStackTrace();
			LOG.debug("同步ldap失败。");
		}
		
	}
}
